package com.ncmmall.mall.params;

/**
 * @author likaikai
 */
public class PageParams {
    private int pageNo = 1;
    private int pageSize = 10;

    public PageParams setPageNo(int pageNo) {
        this.pageNo = pageNo;
        if (this.pageNo < 1) {
            this.pageNo = 1;
        }

        return this;
    }

    public int getPageSize() {
        return pageSize;
    }

    public PageParams setPageSize(int pageSize) {
        this.pageSize = pageSize;
        return this;
    }

    public int getPageNo() {
        return pageNo;
    }
}
